﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BaseSimpleDao
{
    /// <summary>
    /// 筛选排序方式
    /// </summary>
    public enum SqlOrder
    {
        /// <summary>
        /// 正序
        /// </summary>
        ASC,

        /// <summary>
        /// 倒序
        /// </summary>
        DESC,
    }

    /// <summary>
    /// 数据库排序
    /// </summary>
    public class BaseOrder
    {
        /// <summary>
        /// 排序使用的列名
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 排序使用的顺序
        /// </summary>
        public SqlOrder Order { get; set; }
    }
}
